<?php

namespace common\models\Label;

use Yii;

/**
 * This is the model class for table "label".
 *
 * @property integer $la_id
 * @property string $la_name
 * @property integer $u_id
 */
class Label extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'label';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['la_name', 'u_id'], 'required'],
            [['u_id'], 'integer'],
            [['la_name'], 'string', 'max' => 255],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'la_id' => Yii::t('app', 'ID'),
            'la_name' => Yii::t('app', '标签名称'),
            'u_id' => Yii::t('app', '角色'),
        ];
    }
}
